package com.damai.action.aop.impl;

import javax.servlet.http.HttpServletRequest;

import com.citywithincity.api.ApiFilter;
import com.damai.action.aop.Interceptor;
import com.damai.action.aop.Invoker;

public class WebInterceptor implements Interceptor {

	@Override
	public Object invoke(Invoker invoker, HttpServletRequest request, Object[] args) {
		
		request.setAttribute("context", ApiFilter.me().getPath());
		
		return invoker.invoke(request, args);
	}

}
